//
//  KDMessagePushRequestTool.m
//  YuQingXiaoFang
//
//  Created by wangdongdong on 18/5/18.
//  Copyright © 2018年 KDTech. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "KDMessagePushRequestTool.h"
#import "KDGetMessagePushListResult.h"
#import "KDBaseTool.h"
#import "KDBaseResult.h"
#import "KDNoticeListResult.h"
/**  获取推送消息的列表 */
@implementation KDMessagePushRequestTool
+(void)getMesasgePushListWithParam:(KDMessagePushListParam *)param success:(void (^)(KDGetMessagePushListResult *))success failure:(void (^)(NSError *))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,@"pushnewsmessage/getNewsMessage"];
    [KDBaseTool get:url param:param resultClass:[KDGetMessagePushListResult class] success:success failure:failure];
}
/**  通知－－获取推送消息通知列表 */
+(void)getNoticeList :(void (^)(KDBaseResult *))success failure:(void (^)(NSError *))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",FrontServiceAddr,@"app/pushnews/getPushNews"];
    [KDBaseTool get:url param:nil resultClass:[KDBaseResult class] success:success failure:failure];
}

@end
